package com.ssy.lingxi.order.model.vo.basic.request;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;

/**
 * 判断拆单条件接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-07
 */
public class OrderSeparateVendorVO implements Serializable {
    private static final long serialVersionUID = -1746145538462873964L;

    /**
     * 供应会员Id
     */
    @NotNull(message = "供应会员Id要大于0")
    @Positive(message = "供应会员Id要大于0")
    private Long vendorMemberId;

    /**
     * 供应会员角色Id
     */
    @NotNull(message = "供应会员角色Id要大于0")
    @Positive(message = "供应会员角色Id要大于0")
    private Long vendorRoleId;

    /**
     * 供应会员商品列表
     */
    @NotEmpty(message = "商品列表不能为空")
    @Valid
    private List<OrderSeparateProductVO> products;

    public Long getVendorMemberId() {
        return vendorMemberId;
    }

    public void setVendorMemberId(Long vendorMemberId) {
        this.vendorMemberId = vendorMemberId;
    }

    public Long getVendorRoleId() {
        return vendorRoleId;
    }

    public void setVendorRoleId(Long vendorRoleId) {
        this.vendorRoleId = vendorRoleId;
    }

    public List<OrderSeparateProductVO> getProducts() {
        return products;
    }

    public void setProducts(List<OrderSeparateProductVO> products) {
        this.products = products;
    }
}
